
local sha1 = require("sha1");

commonlib.hmac = function(algorithm, text, key, format)
    return sha1.hmac(key, text)
    -- return LuaGui.HMAC(algorithm or "HS256", text or "", key or "secret", format or "base64");
end

return sha1;